<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>友情链接管理</title>
    <script>
    	var APP = '__CONTROLLER__';
    </script>
    <js file="__STATIC__/js/jq.js" />
    <css file="__STATIC__/hdjs/hdjs.css" />
    <js file="__STATIC__/hdjs/hdjs.js" />
    <js file="__CONTROLLER_VIEW__/js/ajax_action.js" />
</head>
<body>
<div class="wrap">
    <div class="hd-title-header">友情链接管理</div>
    <form action="" method="post" class="form-inline hd-form">
        <table class="hd-table hd-table-form hd-form">
            <tr>
            	<td class="w100">ID</td>
                <td class="w100">名称</td>
                <td class="w150">地址</td>
                <td class="w150">图片</td>
                <td class="w150">显示</td>
                <td class="w150">顺序</td>
                <td class="w100">操作</td>
            </tr>
            <foreach from="$flinks" key="$key" value="$val">
             <tr>
             	<td class="w100">{$val.fid}</td>
                <td class="w100">{$val.fname}</td>
                <td class="w100">{$val.url}</td>
                <td class="w150"><img src="__ROOT__/{$val.logo}" alt="" style="width:120px;height:40px;" /></td>
                <td class="w150">
                	<if value="$val['is_show']==1">显示<else/>隐藏</if>
                </td>
                <td class="w150">{$val.sort}</td>
                <td class="w100">
					<a href="__CONTROLLER__/edit/fid/{$val.fid}" class="hd-btn hd-btn-primary hd-btn-xm" style="margin:0;">修改</a>
					<a href="javascript:;" data-fid="{$val.fid}" class="delflink hd-btn hd-btn-danger hd-btn-xm" style="margin:0;">删除</a>
					<if value="$val['is_show']==1">
							<a href="__CONTROLLER__/ishide/fid/{$val.fid}" class="hd-btn hd-btn-primary hd-btn-xm" style="margin:0;">隐藏</a>
					<else/>
							<a href="__CONTROLLER__/isshow/fid/{$val.fid}" class="hd-btn hd-btn-primary hd-btn-xm" style="margin:0;">显示</a>
					</if>
					
					<!--<a href="javascript:;" class="hd-btn hd-btn-success hd-btn-xm" style="margin:0;">上升</a>
					<a href="javascript:;" class="hd-btn hd-btn-default hd-btn-xm" style="margin:0;">下降</a>-->
                </td>
            </tr>
            </foreach>
        </table>
        <div class="hd-page">
       	{$page}
       	</div>
    </form>
</div>
</body>
</html>